﻿<%@ Page Title="Offers Posted Results - Savory Housing" Language="C#" MasterPageFile="~/RealState.Master"
    AutoEventWireup="true" CodeBehind="Offers_Posted_Results.aspx.cs" Inherits="WebApplication.Offers_Posted_Results" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        #tabs {
            width: 95%;
            margin-left: auto;
            margin-right: auto;
            margin-top: 10px;
        }
    </style>
    <link href="css/jquery-ui.css" rel="stylesheet" />
    <script src="http://code.jquery.com/jquery-1.9.1.js" type="text/javascript"></script>
    <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js" type="text/jscript"></script>
    <link rel="stylesheet" href="/resources/demos/style.css" />

    <script type="text/javascript">
        $(document).ready(function () {
            $("#tabs").tabs();
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="slider_container">
        <div class="slider_container_head">
            Featured Real Estate
        </div>
        <div id="gallery">
            <script type="text/javascript">

                stepcarousel.setup({
                    galleryid: 'mygallery', //id of carousel DIV
                    beltclass: 'belt', //class of inner "belt" DIV containing all the panel DIVs
                    panelclass: 'panel', //class of panel DIVs each holding content
                    autostep: { enable: false, moveby: 1, pause: 3000 },
                    panelbehavior: { speed: 2000, wraparound: true, wrapbehavior: 'slide', persist: true },
                    defaultbuttons: { enable: true, moveby: 5, leftnav: ['../images/leftnav.jpg', -4, 0], rightnav: ['../images/rightnav.jpg', 0, 0] },
                    statusvars: ["startA", "startB", "total"],
                    onslide: function () {
                        window.status = "Currently showing panels " + startA + " through " + startB
                    }, //register 3 variables that contain current panel (start), current panel (last), and total panels
                    contenttype: ['inline'] //content setting ['inline'] or ['external', 'path_to_external_file']
                })

            </script>
            <div class="countdown">
                <a href="javascript:stepcarousel.stepBy('mygallery', -5)">
                    <img src="../images/gr-l_ar.jpg" alt="" border="0" align="top" /></a> &nbsp;
                Page <b><span id="startB"></span></b>of <b><span id="total"></span></b>&nbsp; <a
                    href="javascript:stepcarousel.stepBy('mygallery', 5)">
                    <img src="../images/gr-r_ar.jpg" alt="" border="0" align="top" /></a>
            </div>
            <div id="mygallery" class="stepcarousel">
                <div class="belt">
                    <div class="panel">
                        <div class="slider_boxes">
                            <div class="img">
                                <img src="../images/slider_img1.jpg" width="127" height="110" alt="" />
                            </div>
                            <div class="slider_boxes_content">
                                <span class="blue"><strong>116 Snow DR, DM, SA</strong></span> <span class="green">$19,000
                                </span>
                                <br />
                                750 (m2) Building<br />
                                <span class="grey">3 Beds 2 Bath </span>
                                <br />
                                <span class="blue"><a href="#">Save Listing</a></span>
                            </div>
                        </div>
                    </div>
                    <div class="panel">
                        <div class="slider_boxes">
                            <div class="img">
                                <img src="../images/slider_img2.jpg" width="127" height="110" alt="" />
                            </div>
                            <div class="slider_boxes_content">
                                <span class="blue"><strong>116 Snow DR, DM, SA</strong></span> <span class="green">$19,000
                                </span>
                                <br />
                                750 (m2) Building<br />
                                <span class="grey">3 Beds 2 Bath </span>
                                <br />
                                <span class="blue"><a href="#">Save Listing</a></span>
                            </div>
                        </div>
                    </div>
                    <div class="panel">
                        <div class="slider_boxes">
                            <div class="img">
                                <img src="../images/slider_img3.jpg" width="127" height="110" alt="" />
                            </div>
                            <div class="slider_boxes_content">
                                <span class="blue"><strong>116 Snow DR, DM, SA</strong></span> <span class="green">$19,000
                                </span>
                                <br />
                                750 (m2) Building<br />
                                <span class="grey">3 Beds 2 Bath </span>
                                <br />
                                <span class="blue"><a href="#">Save Listing</a></span>
                            </div>
                        </div>
                    </div>
                    <div class="panel">
                        <div class="slider_boxes">
                            <div class="img">
                                <img src="../images/slider_img2.jpg" width="127" height="110" alt="" />
                            </div>
                            <div class="slider_boxes_content">
                                <span class="blue"><strong>116 Snow DR, DM, SA</strong></span> <span class="green">$19,000
                                </span>
                                <br />
                                750 (m2) Building<br />
                                <span class="grey">3 Beds 2 Bath </span>
                                <br />
                                <span class="blue"><a href="#">Save Listing</a></span>
                            </div>
                        </div>
                    </div>
                    <div class="panel">
                        <div class="slider_boxes">
                            <div class="img">
                                <img src="../images/slider_img1.jpg" width="127" height="110" alt="" />
                            </div>
                            <div class="slider_boxes_content">
                                <span class="blue"><strong>116 Snow DR, DM, SA</strong></span> <span class="green">$19,000
                                </span>
                                <br />
                                750 (m2) Building<br />
                                <span class="grey">3 Beds 2 Bath </span>
                                <br />
                                <span class="blue"><a href="#">Save Listing</a></span>
                            </div>
                        </div>
                    </div>
                    <div class="panel">
                        <div class="slider_boxes">
                            <div class="img">
                                <img src="../images/slider_img3.jpg" width="127" height="110" alt="" />
                            </div>
                            <div class="slider_boxes_content">
                                <span class="blue"><strong>116 Snow DR, DM, SA</strong></span> <span class="green">$19,000
                                </span>
                                <br />
                                750 (m2) Building<br />
                                <span class="grey">3 Beds 2 Bath </span>
                                <br />
                                <span class="blue"><a href="#">Save Listing</a></span>
                            </div>
                        </div>
                    </div>
                    <div class="panel">
                        <div class="slider_boxes">
                            <div class="img">
                                <img src="../images/slider_img3.jpg" width="127" height="110" alt="" />
                            </div>
                            <div class="slider_boxes_content">
                                <span class="blue"><strong>116 Snow DR, DM, SA</strong></span> <span class="green">$19,000
                                </span>
                                <br />
                                750 (m2) Building<br />
                                <span class="grey">3 Beds 2 Bath </span>
                                <br />
                                <span class="blue"><a href="#">Save Listing</a></span>
                            </div>
                        </div>
                    </div>
                    <div class="panel">
                        <div class="slider_boxes">
                            <div class="img">
                                <img src="../images/slider_img3.jpg" width="127" height="110" alt="" />
                            </div>
                            <div class="slider_boxes_content">
                                <span class="blue"><strong>116 Snow DR, DM, SA</strong></span> <span class="green">$19,000
                                </span>
                                <br />
                                750 (m2) Building<br />
                                <span class="grey">3 Beds 2 Bath </span>
                                <br />
                                <span class="blue"><a href="#">Save Listing</a></span>
                            </div>
                        </div>
                    </div>
                    <div class="panel">
                        <div class="slider_boxes">
                            <div class="img">
                                <img src="../images/slider_img3.jpg" width="127" height="110" alt="" />
                            </div>
                            <div class="slider_boxes_content">
                                <span class="blue"><strong>116 Snow DR, DM, SA</strong></span> <span class="green">$19,000
                                </span>
                                <br />
                                750 (m2) Building<br />
                                <span class="grey">3 Beds 2 Bath </span>
                                <br />
                                <span class="blue"><a href="#">Save Listing</a></span>
                            </div>
                        </div>
                    </div>
                    <div class="panel">
                        <div class="slider_boxes">
                            <div class="img">
                                <img src="../images/slider_img3.jpg" width="127" height="110" alt="" />
                            </div>
                            <div class="slider_boxes_content">
                                <span class="blue"><strong>116 Snow DR, DM, SA</strong></span> <span class="green">$19,000
                                </span>
                                <br />
                                750 (m2) Building<br />
                                <span class="grey">3 Beds 2 Bath </span>
                                <br />
                                <span class="blue"><a href="#">Save Listing</a></span>
                            </div>
                        </div>
                    </div>
                    <div class="panel">
                        <div class="slider_boxes">
                            <div class="img">
                                <img src="../images/slider_img3.jpg" width="127" height="110" alt="" />
                            </div>
                            <div class="slider_boxes_content">
                                <span class="blue"><strong>116 Snow DR, DM, SA</strong></span> <span class="green">$19,000
                                </span>
                                <br />
                                750 (m2) Building<br />
                                <span class="grey">3 Beds 2 Bath </span>
                                <br />
                                <span class="blue"><a href="#">Save Listing</a></span>
                            </div>
                        </div>
                    </div>
                    <div class="panel">
                        <div class="slider_boxes">
                            <div class="img">
                                <img src="../images/slider_img3.jpg" width="127" height="110" alt="" />
                            </div>
                            <div class="slider_boxes_content">
                                <span class="blue"><strong>116 Snow DR, DM, SA</strong></span> <span class="green">$19,000
                                </span>
                                <br />
                                750 (m2) Building<br />
                                <span class="grey">3 Beds 2 Bath </span>
                                <br />
                                <span class="blue"><a href="#">Save Listing</a></span>
                            </div>
                        </div>
                    </div>
                    <div class="panel">
                        <div class="slider_boxes">
                            <div class="img">
                                <img src="../images/slider_img3.jpg" width="127" height="110" alt="" />
                            </div>
                            <div class="slider_boxes_content">
                                <span class="blue"><strong>116 Snow DR, DM, SA</strong></span> <span class="green">$19,000
                                </span>
                                <br />
                                750 (m2) Building<br />
                                <span class="grey">3 Beds 2 Bath </span>
                                <br />
                                <span class="blue"><a href="#">Save Listing</a></span>
                            </div>
                        </div>
                    </div>
                    <div class="panel">
                        <div class="slider_boxes">
                            <div class="img">
                                <img src="../images/slider_img3.jpg" width="127" height="110" alt="" />
                            </div>
                            <div class="slider_boxes_content">
                                <span class="blue"><strong>116 Snow DR, DM, SA</strong></span> <span class="green">$19,000
                                </span>
                                <br />
                                750 (m2) Building<br />
                                <span class="grey">3 Beds 2 Bath </span>
                                <br />
                                <span class="blue"><a href="#">Save Listing</a></span>
                            </div>
                        </div>
                    </div>
                    <div class="panel">
                        <div class="slider_boxes">
                            <div class="img">
                                <img src="../images/slider_img3.jpg" width="127" height="110" alt="" />
                            </div>
                            <div class="slider_boxes_content">
                                <span class="blue"><strong>116 Snow DR, DM, SA</strong></span> <span class="green">$19,000
                                </span>
                                <br />
                                750 (m2) Building<br />
                                <span class="grey">3 Beds 2 Bath </span>
                                <br />
                                <span class="blue"><a href="#">Save Listing</a></span>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    </div>
    <div class="clear">
    </div>
    <div class="blue">
        <h3 class="white_db_box nfont blue" id="h3Header" runat="server" style="width: 480px; background: #F5F1DF; border: #BDB3AB 2px solid; color: #595959;">Real Estate Offers Posted</h3>
        <div class="clear">
        </div>
        <br />
        <div class="pd-l10">
            <!-- Search Listing Start -->
            <div class="search_listing">
                <p class="purple">
                    <strong>
                        <asp:Label ID="lblProperty" runat="server"></asp:Label><br />
                    
                    </strong>
                </p>
                <div id="divAll" runat="server" style="display:none;">
                <div id="tabs">
                    <ul>
                        <li><a href="#tabs-1">Residential</a></li>
                        <li><a href="#tabs-2">Commercial</a></li>

                    </ul>
                    <div id="tabs-1">
                        <asp:GridView ID="grd_Residential" EmptyDataText="No Result found" EmptyDataRowStyle-ForeColor="Red"
                            BorderWidth="0" AllowPaging="true" DataKeyNames="PostedOfferID" AllowSorting="true"
                            AutoGenerateColumns="false" runat="server" OnRowDataBound="gvResidentail_RowDataBound">
                            <Columns>
                                <asp:TemplateField>
                                    <ItemTemplate>
                                        <asp:CheckBox ID="chkSelect" runat="server" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Type">
                                    <ItemTemplate>
                                        <asp:Label ID="lblType" runat="server" Text='<%# Request["PT"]%>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Neighborhood">
                                    <ItemTemplate>
                                        <asp:Label ID="lblNeighborhood" runat="server" Text='<%# Eval("Neighbourhood") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Mode">
                                    <ItemTemplate>
                                        <asp:Label ID="lblBuyType" runat="server" Text='<%# Eval("PriceMode") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Building<br />Area (m2)">
                                    <ItemTemplate>
                                        <asp:Label ID="lblBuildingArea" runat="server" Text='<%# Eval("Area") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Lot Area<br />(m2)">
                                    <ItemTemplate>
                                        <asp:Label ID="lbllotarea" runat="server" Text='<%# Eval("Area") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Price">
                                    <ItemTemplate>
                                        <asp:Label ID="lblPrice" runat="server" Text='<%# Eval("TotalPrice") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Detail">
                                    <ItemTemplate>
                                        <asp:HyperLink ID="lnkDetails" runat="server" Text="Click Here" NavigateUrl='<%# Eval("PostedOfferID") %>'></asp:HyperLink>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Contacts Name">
                                    <ItemTemplate>
                                        <asp:Label ID="lblConactName" runat="server" Text='<%# Eval("UserName") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Numb. 1">
                                    <ItemTemplate>
                                        <asp:Label ID="lblLandLineNo" runat="server" Text='<%# Eval("LandLineNo") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Numb. 2">
                                    <ItemTemplate>
                                        <asp:Label ID="lblContactNo2" runat="server" Text='<%# Eval("LandLineNo") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Date">
                                    <ItemTemplate>
                                        <asp:Label ID="lblCreateDate" runat="server" Text='<%# Eval("CreatedDate") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                        </asp:GridView>
                    </div>
                    <div id="tabs-2">
                        <asp:GridView ID="grd_Comercial" EmptyDataText="No Result found" EmptyDataRowStyle-ForeColor="Red"
                            BorderWidth="0" AllowPaging="true" DataKeyNames="PostedOfferID" AllowSorting="true"
                            AutoGenerateColumns="false" runat="server" OnRowDataBound="gvResidentail_RowDataBound">
                            <Columns>
                                <asp:TemplateField>
                                    <ItemTemplate>
                                        <asp:CheckBox ID="chkSelect" runat="server" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Type">
                                    <ItemTemplate>
                                        <asp:Label ID="lblType" runat="server" Text='<%# Request["PT"]%>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Neighborhood">
                                    <ItemTemplate>
                                        <asp:Label ID="lblNeighborhood" runat="server" Text='<%# Eval("Neighbourhood") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Mode">
                                    <ItemTemplate>
                                        <asp:Label ID="lblBuyType" runat="server" Text='<%# Eval("PriceMode") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Building<br />Area (m2)">
                                    <ItemTemplate>
                                        <asp:Label ID="lblBuildingArea" runat="server" Text='<%# Eval("Area") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Lot Area<br />(m2)">
                                    <ItemTemplate>
                                        <asp:Label ID="lbllotarea" runat="server" Text='<%# Eval("Area") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Price">
                                    <ItemTemplate>
                                        <asp:Label ID="lblPrice" runat="server" Text='<%# Eval("TotalPrice") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Detail">
                                    <ItemTemplate>
                                        <asp:HyperLink ID="lnkDetails" runat="server" Text="Click Here" NavigateUrl='<%# Eval("PostedOfferID") %>'></asp:HyperLink>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Contacts Name">
                                    <ItemTemplate>
                                        <asp:Label ID="lblConactName" runat="server" Text='<%# Eval("UserName") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Numb. 1">
                                    <ItemTemplate>
                                        <asp:Label ID="lblLandLineNo" runat="server" Text='<%# Eval("LandLineNo") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Numb. 2">
                                    <ItemTemplate>
                                        <asp:Label ID="lblContactNo2" runat="server" Text='<%# Eval("LandLineNo") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Date">
                                    <ItemTemplate>
                                        <asp:Label ID="lblCreateDate" runat="server" Text='<%# Eval("CreatedDate") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                        </asp:GridView>
                    </div>

                </div>
                    </div>
                <div id="divCheckAll" runat="server" style="display: none;">
                    <asp:GridView ID="gvResidentail" EmptyDataText="No Result found" EmptyDataRowStyle-ForeColor="Red"
                        BorderWidth="0" AllowPaging="true" DataKeyNames="PostedOfferID" AllowSorting="true"
                        AutoGenerateColumns="false" runat="server" OnRowDataBound="gvResidentail_RowDataBound">
                        <Columns>
                            <asp:TemplateField>
                                <ItemTemplate>
                                    <asp:CheckBox ID="chkSelect" runat="server" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Type">
                                <ItemTemplate>
                                    <asp:Label ID="lblType" runat="server" Text='<%# Request["PT"]%>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Neighborhood">
                                <ItemTemplate>
                                    <asp:Label ID="lblNeighborhood" runat="server" Text='<%# Eval("Neighbourhood") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Mode">
                                <ItemTemplate>
                                    <asp:Label ID="lblBuyType" runat="server" Text='<%# Eval("PriceMode") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Building<br />Area (m2)">
                                <ItemTemplate>
                                    <asp:Label ID="lblBuildingArea" runat="server" Text='<%# Eval("Area") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Lot Area<br />(m2)">
                                <ItemTemplate>
                                    <asp:Label ID="lbllotarea" runat="server" Text='<%# Eval("Area") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Price">
                                <ItemTemplate>
                                    <asp:Label ID="lblPrice" runat="server" Text='<%# Eval("TotalPrice") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Detail">
                                <ItemTemplate>
                                    <asp:HyperLink ID="lnkDetails" runat="server" Text="Click Here" NavigateUrl='<%# Eval("PostedOfferID") %>'></asp:HyperLink>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Contacts Name">
                                <ItemTemplate>
                                    <asp:Label ID="lblConactName" runat="server" Text='<%# Eval("UserName") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Numb. 1">
                                <ItemTemplate>
                                    <asp:Label ID="lblLandLineNo" runat="server" Text='<%# Eval("LandLineNo") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Numb. 2">
                                <ItemTemplate>
                                    <asp:Label ID="lblContactNo2" runat="server" Text='<%# Eval("LandLineNo") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Date">
                                <ItemTemplate>
                                    <asp:Label ID="lblCreateDate" runat="server" Text='<%# Eval("CreatedDate") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                </div>
                <br />
            </div>
            <br />
            <div id="dvresult" runat="server">
                Save Selected Results<br />
                <br />
                <input type="button" value="Save" class="reg-blue-round-btn w75" /><br />
                <br />
                <!-- Search Listing End -->
            </div>
        </div>
    </div>
</asp:Content>
